]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
layout: Remove obsolete message tray <=> OSK interaction code
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 12 Feb 2013 20:58:30 +0000 (21:58 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 14 Feb 2013 16:31:32 +0000 (17:31 +0100)
Message tray and on-screen keyboard are now exclusive, so remove
all code that shuffles boxes around to make it possible to show
both at the same time.

https://bugzilla.gnome.org/show_bug.cgi?id=662687

js/ui/layout.js

index 7f757094c738bba21ccc61e34e6a91cb47b20c1e..4dc3f61562a9ed26dfa6a4ca862a23652d1dfa15 100644 (file)
@@ -317,13 +317,6 @@ const LayoutManager = new Lang.Class({
         this.trayBox.set_position(this.bottomMonitor.x,
                                   this.bottomMonitor.y + this.bottomMonitor.height);
         this.trayBox.set_size(this.bottomMonitor.width, -1);
-
-        // Set trayBox's clip to show things above it, but not below
-        // it (so it's not visible behind the keyboard). The exact
-        // height of the clip doesn't matter, as long as it's taller
-        // than any Notification.actor.
-        this.trayBox.set_clip(0, -this.bottomMonitor.height,
-                              this.bottomMonitor.width, this.bottomMonitor.height);
     },
 
     _panelBoxChanged: function() {
@@ -505,15 +498,6 @@ const LayoutManager = new Lang.Class({
                            onComplete: this._showKeyboardComplete,
                            onCompleteScope: this
                          });
-
-        if (this.keyboardIndex == this.bottomIndex) {
-            Tweener.addTween(this.trayBox,
-                             { anchor_y: this.keyboardBox.height,
-                               time: KEYBOARD_ANIMATION_TIME,
-                               transition: 'easeOutQuad'
-                             });
-        }
-
         this.emit('keyboard-visible-changed', true);
     },
 
@@ -524,8 +508,6 @@ const LayoutManager = new Lang.Class({
 
         this._keyboardHeightNotifyId = this.keyboardBox.connect('notify::height', Lang.bind(this, function () {
             this.keyboardBox.anchor_y = this.keyboardBox.height;
-            if (this.keyboardIndex == this.bottomIndex)
-                this.trayBox.anchor_y = this.keyboardBox.height;
         }));
     },
 
@@ -542,14 +524,6 @@ const LayoutManager = new Lang.Class({
                            onCompleteScope: this
                          });
 
-        if (this.keyboardIndex == this.bottomIndex) {
-            Tweener.addTween(this.trayBox,
-                             { anchor_y: 0,
-                               time: immediate ? 0 : KEYBOARD_ANIMATION_TIME,
-                               transition: 'easeOutQuad'
-                             });
-        }
-
         this.emit('keyboard-visible-changed', false);
     },